package com.pqtest.api.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Setter
@Getter
public class TestlibraryEntity {
    //id, title, desc, hard_rate, average_point, test_count, module_type, score, created_time, updated_time, state, pq_test_category_id, item_amount, is_spirit, spirit_start, spirit_end
    private Integer id;
    private String title;
    private String desc;
    private int hardRate;
    private int averagePoint;
    private int testCount;
    private int moduleType;
    private int score;
    // @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonIgnore
    private Date createdTime;
    //@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonIgnore
    private Date updatedTime;
    private int state;
    private int pqTestCategoryId;
    private int itemAmount;
    //是否模拟测验
    @JsonIgnore
    private int isSpirit;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    //@JsonIgnore
    private Date spiritStart;
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    //@JsonIgnore
    private Date spiritEnd;
}
